package com.nwpu.coursesupport.view;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.nwpu.coursesupport.enumeration.Status;

import java.util.Date;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TaskAssignView {

	private int id;//分配id
	private int lessonId;
	private int classId;
	private int taskId;
	private String className;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm")
	private Date beginDate;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="HH:mm")
	private Date endDate;
	private String location;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm")
	private Date deadline;
	private Status isVisible;
    private Status isAnswerVisible;
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm")
	private Date publishDatetime;

	public Date getPublishDatetime() {
		return publishDatetime;
	}

	public void setPublishDatetime(Date publishDatetime) {
		this.publishDatetime = publishDatetime;
	}

	public int getLessonId() {
		return lessonId;
	}
	public void setLessonId(int lessonId) {
		this.lessonId = lessonId;
	}
	public int getClassId() {
		return classId;
	}
	public void setClassId(int classId) {
		this.classId = classId;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public Date getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public Date getDeadline() {
		return deadline;
	}
	public void setDeadline(Date deadline) {
		this.deadline = deadline;
	}
	public int getTaskId() {
		return taskId;
	}
	public void setTaskId(int taskId) {
		this.taskId = taskId;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Status getIsVisible() {
		return isVisible;
	}
	public void setIsVisible(Status isVisible) {
		this.isVisible = isVisible;
	}
	public Status getIsAnswerVisible() {
		return isAnswerVisible;
	}
	public void setIsAnswerVisible(Status isAnswerVisible) {
		this.isAnswerVisible = isAnswerVisible;
	}

}
